<?php
class Silk_Zgb_IndexController extends Mage_Core_Controller_Front_Action{
    public function datetimeAction()
    {
      echo Mage::getModel('core/date')->date();
      return;
      date_default_timezone_set("UTC");
      echo date("Y-m-d H:i:s")."\n";
      echo Mage::getModel('core/date')->date();
      $resource = Mage::getSingleton('core/resource');
      $db = $resource->getConnection('core_read');
      $sql = "SHOW VARIABLES LIKE'%time_zone%';";
      $query = $db->query($sql);
      print_r($query->fetchAll());
    }

    public function infoAction()
    {
      phpinfo();
    }

    public function customerAction()
    {
        $model = Mage::getModel('customer/customer');
        $model->setEmail(rand().rand()."@abc.com");
        $model->setFirstname('OK');
        $model->setLastname('YES');
        $model->setPassword('123456');
        $model->save();
    }
}